
const path = require('path')
function resolve(dir){
    return path.join(__dirname,dir)
}
module.exports = {
    lintOnSave: false,
    devServer:{
        proxy:{
            '/restful/!*':{
                target:'http://127.0.0.1:8080',
                changeOrigin:true,
                secure:false,
                pathRewrite:{
                    '^/restful':'/'
                }
            }
        }
    },
    chainWebpack:config => {
        config.resolve.alias
        .set('@',resolve('./src'))
        .set('assets',resolve('./src/assets'))
        .set('jQuery',resolve('./node_modules/jquery/src/jquery'))
    }
   }
 
